<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>改变颜色</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
    	function color(){
    		document.getElementById("le").style.color="#0f0";
    		}
    </script>
  </head>
  
  <body>
    <p id="le">请改变我的颜色</p>
    <button type="button" onclick="color()">点击</button>
  </body>
</html>
